package com.wp._2016校招.网易;
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            int listNumber=in.nextInt();
            for(int i = 0;i<listNumber;i++){
                int[] array=new int[in.nextInt()];
                for(int j=0;j<array.length;j++){
                    array[j]=in.nextInt();
                }
                System.out.println(match(array));
            }
        }
    }

    public static String match(int[] array){
        int countOf1=0;
        int countOf4=0;
        for(int i=0;i<array.length;i++){
            int num=array[i];
            if(num%2!=0)countOf1++;
            if(num%4==0)countOf4++;
        }

        if(countOf4>=countOf1||((countOf4>=countOf1-1)&&(countOf4+countOf1)==1)){
            return "Yes";
        }
        return "No";
    }
}